﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Universum.Model.Domain;

namespace Universum.Infrastructure.Persistence.Queries
{
	public class UserWithUsername : IDomainQuery<Universum.Model.Domain.User>
	{
		public UserWithUsername(string username)
		{
			Expression = user => user.Username.Equals(username);
		}
		#region IDomainQuery<User> Members

		public System.Linq.Expressions.Expression<Func<Universum.Model.Domain.User, bool>> Expression
		{
			get;
			private set;
		}

		#endregion
	}
}
